package com.woniuxy02;


public class Test03 {

    public static void main(String[] args) {
        String s1=new String("abc");
        System.out.println(s1);

        String s2=new String();
        System.out.println(s2);

        char[] chars = {'a', 'b', 'c'};
        String s3=new String(chars);
        System.out.println(s3);

//        byte[] bytes={97,98,99,100,101};
        byte[] bytes={'a',98,99,100,101};
        String s4=new String(bytes);
        System.out.println(s4);

        String s5=new String(bytes,1,3);
        System.out.println(s5);
    }
}
